package com.wheelerstreet.posterous.events
{
	import flash.events.Event;

	public class PosterousEvent extends Event
	{
		// twitter
		public static const UPLOAD:String = "upload";		
		public static const UPLOAD_AND_POST:String = "uploadAndPost";
		
		// posting
		public static const NEW_POST:String = "newPost";		
		public static const NEW_COMMENT:String = "newComment";
		
		// upload events 
		public static const UPLOAD_PROGRESS:String = "uploadProgress";
		public static const UPLOAD_START:String = "uploadStart";
		public static const UPLOAD_COMPLETE:String = "uploadComplete";
				
		// reading				
		public static const GET_SITES:String = "getSites";		
		public static const READ_POSTS:String = "readPosts";
		
		// post.ly
		public static const GET_POST:String = "getPost";
	
		public static const ERROR:String = "error";
		
		public var data:Object;
		
		public function PosterousEvent(type:String, data:Object, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this.data = data;
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			return new PosterousEvent(type,data,bubbles,cancelable);
		}
		
	}
}